package com.cx.mapper;

import com.cx.pojo.Game;
import com.cx.pojo.GameInfo;
import com.cx.pojo.Gamelibrary;
import com.cx.pojo.GamelibraryExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface GamelibraryMapper {
    int countByExample(GamelibraryExample example);

    int deleteByExample(GamelibraryExample example);

    int deleteByPrimaryKey(Integer glId);

    int insert(Gamelibrary record);

    int insertSelective(Gamelibrary record);

    List<Gamelibrary> selectByExample(GamelibraryExample example);

    Gamelibrary selectByPrimaryKey(Integer glId);

    int updateByExampleSelective(@Param("record") Gamelibrary record, @Param("example") GamelibraryExample example);

    int updateByExample(@Param("record") Gamelibrary record, @Param("example") GamelibraryExample example);

    int updateByPrimaryKeySelective(Gamelibrary record);

    int updateByPrimaryKey(Gamelibrary record);

    List<GameInfo> selectByUserId(int userId);

    List<GameInfo> selectByName(int userId,String name);
}